package com.yihaodian.index.meta.shard;

import com.yihaodian.api.index.IndexDoc;
import com.yihaodian.cluster.ClusterState;

public interface ShardHandler {

	/**
	 * Get shard id of target data
	 * 
	 * @param object
	 * @return
	 */
	ShardId shard(ClusterState cs, String indexName, IndexDoc doc);
}
